/**
 * 
 */
package com.roc.web.action;

import java.util.Date;

import org.apache.struts2.json.annotations.JSON;

/**
 * @author Administrator
 * 
 */
public class JsonTestBean {
	private String name;
	private String age;
	private String sex;
	private Date birthday;

	@JSON(format="yyyy-MM-dd")
	public Date getBirthday() {
		return birthday;
	}
	
	@JSON(serialize=false)
	public String getSex() {
		return sex;
	}
	
	@JSON(name = "newName")
	public String getName() {
		return name;
	}
	
	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	

	public void setSex(String sex) {
		this.sex = sex;
	}

	public JsonTestBean(String name, String age) {
		super();
		this.name = name;
		this.age = age;
	}

	public JsonTestBean(String name, String age, String sex) {
		super();
		this.name = name;
		this.age = age;
		this.sex = sex;
	}

	

	public void setName(String name) {
		this.name = name;
	}

	public String getAge() {
		return age;
	}

	public void setAge(String age) {
		this.age = age;
	}

}
